<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <base href="<%=basePath%>"/>
		<title>生成订单 - 当当网</title>
		<link href="css/login.css" rel="stylesheet" type="text/css" />
		<link href="css/page_bottom.css" rel="stylesheet" type="text/css" />
	</head>
	<body>
		<div id="header"><iframe src="common/header.jsp" height="250px" width="960px" frameborder="0"></iframe></div>
		<div class="login_step">
			生成订单骤:
			<span class="red_bold">1.确认订单</span> > 2.填写送货地址 > 3.订单成功
		</div>
		<div class="fill_message">

			<table class="tab_login">
				
				<tr>
					<td valign="top" class="w1" style="text-align: left">
						<b>序号</b>
					</td>
					<td valign="top" class="w1" style="text-align: left">
						<b>商品名称</b>
					</td>
					<td valign="top" class="w1" style="text-align: left">
						<b>商品单价</b>
					</td>
					<td valign="top" class="w1" style="text-align: left">
						<b>商品数量</b>
					</td>
					<td valign="top" class="w1" style="text-align: left">
						<b>小计</b>
					</td>
				</tr>
				
				<!-- 订单开始 -->
				<s:iterator value="#session.cart.items" status="i">
					<tr>
						<td valign="top">
						<s:property value="#i.count"/>
						</td>
						<td valign="top">
							<s:property value="book.productName"/>
						</td>
						<td valign="top">
							<s:property value="book.dangPrice"/>
						</td>
						<td valign="top">
							<s:property value="qty"/>
						</td>
						<td valign="top">
							<s:property value="qty*book.dangPrice"/>
						</td>
					</tr>
				</s:iterator>
					
				<!-- 订单结束 -->
				<tr>
					<td valign="top" class="w1" style="text-align: left" colspan="5">
						<b style="float:right; position:relative;left:-100px;">总价￥<s:property value="needPay"/></b>
					</td>
				</tr>
			</table>
			<br />
			<br />
			<br />
			<div class="login_in">
				<a href="${pageContext.request.contextPath }/mainAction"><input id="btnClientRegister" class="button_1" name="submit"
					type="submit" value="取消" /></a>
			
				<a href="order/productAction!nextOrder"><input id="btnClientRegister" class="button_1" name="submit"
					type="submit" value="下一步" /></a>
		
			</div>

		</div>
		<!--网站版权部分开始-->
<div id="footer">
<iframe src="common/footer.jsp" height="50px" width="900px" frameborder="0"></iframe>
</div>
	</body>
</html>

